package fun.codedesign.yinxue.code.php2java.rule.statement;

public class NamespaceStatementRule implements StatementRule {
    @Override
    public boolean isMatch(String originStatement) {
        return true;
    }

    @Override
    public String invoke(String originStatement) {
        String replaceStatement = originStatement;
        if (originStatement.contains("namespace")) {
            replaceStatement = replaceStatement.replace("namespace", "");
        }
        return replaceStatement.toLowerCase().replace("\\", ".");
    }
}
